package bb.lanxing.databinding.utils;

import com.blankj.utilcode.util.ToastUtils;
import bb.lanxing.R;
import bb.lanxing.common.config.Constants;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;

public final class FGSettingsConstants {
    public static final FGSettingsConstants INSTANCE = new FGSettingsConstants();

    private FGSettingsConstants() {
    }


    public enum UserGenderTypeDef {
        TYPE_MALE(0, R.string.gender_male),
        TYPE_FEMALE(1, R.string.gender_female);
        
        public static final Companion Companion = new Companion(null);
        private final int type;
        private final int typeStrId;

        UserGenderTypeDef(int i, int i2) {
            this.type = i;
            this.typeStrId = i2;
        }

        public final int getType() {
            return this.type;
        }

        public final int getTypeStrId() {
            return this.typeStrId;
        }


        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final UserGenderTypeDef from(int i) {
                UserGenderTypeDef[] values;
                for (UserGenderTypeDef userGenderTypeDef : UserGenderTypeDef.values()) {
                    if (userGenderTypeDef.getType() == i) {
                        return userGenderTypeDef;
                    }
                }
                return null;
            }
        }
    }


    public enum AutoPauseTypeDef {
        TYPE_ON(true, R.string.st_on),
        TYPE_OFF(false, R.string.device_sprint_settings_turn_off);
        
        public static final Companion Companion = new Companion(null);
        private final boolean type;
        private final int typeStrId;

        AutoPauseTypeDef(boolean z, int i) {
            this.type = z;
            this.typeStrId = i;
        }

        public final boolean getType() {
            return this.type;
        }

        public final int getTypeStrId() {
            return this.typeStrId;
        }

        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final AutoPauseTypeDef from(boolean z) {
                AutoPauseTypeDef[] values;
                for (AutoPauseTypeDef autoPauseTypeDef : AutoPauseTypeDef.values()) {
                    if (autoPauseTypeDef.getType() == z) {
                        return autoPauseTypeDef;
                    }
                }
                return null;
            }

            public final AutoPauseTypeDef fromId(int i) {
                AutoPauseTypeDef[] values;
                for (AutoPauseTypeDef autoPauseTypeDef : AutoPauseTypeDef.values()) {
                    if (autoPauseTypeDef.getTypeStrId() == i) {
                        return autoPauseTypeDef;
                    }
                }
                return null;
            }
        }
    }


    public enum BacklightTypeDef {
        TYPE_AUTO(0, R.string.st_auto),
        TYPE_ALWAYS_ON(1, R.string.device_sprint_settings_backlight_always),
        TYPE_OFF(2, R.string.device_sprint_settings_backlight_turn_off);
        
        public static final Companion Companion = new Companion(null);
        private final int type;
        private final int typeStrId;

        BacklightTypeDef(int i, int i2) {
            this.type = i;
            this.typeStrId = i2;
        }

        public final int getType() {
            return this.type;
        }

        public final int getTypeStrId() {
            return this.typeStrId;
        }


        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final BacklightTypeDef from(int i) {
                BacklightTypeDef[] values;
                for (BacklightTypeDef backlightTypeDef : BacklightTypeDef.values()) {
                    if (backlightTypeDef.getType() == i) {
                        return backlightTypeDef;
                    }
                }
                return null;
            }
        }
    }

    public enum KeyToneTypeDef {
        TYPE_ON(true, R.string.device_sprint_settings_backlight_turn_on),
        TYPE_OFF(false, R.string.device_sprint_settings_turn_off);
        
        public static final Companion Companion = new Companion(null);
        private final boolean type;
        private final int typeStrId;

        KeyToneTypeDef(boolean z, int i) {
            this.type = z;
            this.typeStrId = i;
        }

        public final boolean getType() {
            return this.type;
        }

        public final int getTypeStrId() {
            return this.typeStrId;
        }

        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final KeyToneTypeDef from(boolean z) {
                KeyToneTypeDef[] values;
                for (KeyToneTypeDef keyToneTypeDef : KeyToneTypeDef.values()) {
                    if (keyToneTypeDef.getType() == z) {
                        return keyToneTypeDef;
                    }
                }
                return null;
            }
        }
    }


    public enum OverWriteTypeDef {
        TYPE_AUTO(0),
        TYPE_OFF(1);
        
        public static final Companion Companion = new Companion(null);
        private final int type;

        OverWriteTypeDef(int i) {
            this.type = i;
        }

        public final int getType() {
            return this.type;
        }


        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final OverWriteTypeDef from(int i) {
                OverWriteTypeDef[] values;
                for (OverWriteTypeDef overWriteTypeDef : OverWriteTypeDef.values()) {
                    if (overWriteTypeDef.getType() == i) {
                        return overWriteTypeDef;
                    }
                }
                return null;
            }
        }
    }


    public enum TemperatureUnitTypeDef {
        TYPE_C(0, "°C"),
        TYPE_F(1, "°F");
        
        public static final Companion Companion = new Companion(null);
        private final int type;
        private final String typeStr;

        TemperatureUnitTypeDef(int i, String str) {
            this.type = i;
            this.typeStr = str;
        }

        public final int getType() {
            return this.type;
        }

        public final String getTypeStr() {
            return this.typeStr;
        }

        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final TemperatureUnitTypeDef from(int i) {
                TemperatureUnitTypeDef[] values;
                for (TemperatureUnitTypeDef temperatureUnitTypeDef : TemperatureUnitTypeDef.values()) {
                    if (temperatureUnitTypeDef.getType() == i) {
                        return temperatureUnitTypeDef;
                    }
                }
                return null;
            }
        }
    }

    public enum TimeformatterTypeDef {
        TYPE_24H(0),
        TYPE_12H(1);
        
        public static final Companion Companion = new Companion(null);
        private final int type;

        TimeformatterTypeDef(int i) {
            this.type = i;
        }

        public final int getType() {
            return this.type;
        }

        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final TimeformatterTypeDef from(int i) {
                TimeformatterTypeDef[] values;
                for (TimeformatterTypeDef timeformatterTypeDef : TimeformatterTypeDef.values()) {
                    if (timeformatterTypeDef.getType() == i) {
                        return timeformatterTypeDef;
                    }
                }
                return null;
            }
        }
    }

    public enum UnitTypeDef {
        TYPE_METRIC(0, R.string.device_sprint_settings_unit_metric),
        TYPE_IMPERIAL(1, R.string.device_sprint_settings_unit_british);
        
        public static final Companion Companion = new Companion(null);
        private final int type;
        private final int unitNameId;

        UnitTypeDef(int i, int i2) {
            this.type = i;
            this.unitNameId = i2;
        }

        public final int getType() {
            return this.type;
        }

        public final int getUnitNameId() {
            return this.unitNameId;
        }

        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final UnitTypeDef from(int i) {
                UnitTypeDef[] values;
                for (UnitTypeDef unitTypeDef : UnitTypeDef.values()) {
                    if (unitTypeDef.getType() == i) {
                        return unitTypeDef;
                    }
                }
                return null;
            }

            public final UnitTypeDef fromName(int i) {
                UnitTypeDef[] values;
                for (UnitTypeDef unitTypeDef : UnitTypeDef.values()) {
                    if (unitTypeDef.getUnitNameId() == i) {
                        return unitTypeDef;
                    }
                }
                return null;
            }
        }
    }

    public enum LanguageTypeDef {
        TYPE_Chinese(0, "简体中文"),
        TYPE_English(1, "English");
        
        public static final Companion Companion = new Companion(null);
        private final String localeName;
        private final int type;

        LanguageTypeDef(int i, String str) {
            this.type = i;
            this.localeName = str;
        }

        public final String getLocaleName() {
            return this.localeName;
        }

        public final int getType() {
            return this.type;
        }

        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final LanguageTypeDef fromType(int i) {
                LanguageTypeDef[] values;
                for (LanguageTypeDef languageTypeDef : LanguageTypeDef.values()) {
                    if (languageTypeDef.getType() == i) {
                        return languageTypeDef;
                    }
                }
                return null;
            }

            public final LanguageTypeDef fromLocalName(String s) {
                LanguageTypeDef[] values;
                Intrinsics.checkNotNullParameter(s, "s");
                for (LanguageTypeDef languageTypeDef : LanguageTypeDef.values()) {
                    if (Intrinsics.areEqual(languageTypeDef.getLocaleName(), s)) {
                        return languageTypeDef;
                    }
                }
                return null;
            }
        }
    }

    public enum Language {
        TYPE_Chinese(0, "简体中文"),
        TYPE_English(1, "English");
        
        public static final Companion Companion = new Companion(null);
        private final String localeName;
        private final int type;

        Language(int i, String str) {
            this.type = i;
            this.localeName = str;
        }

        public final String getLocaleName() {
            return this.localeName;
        }

        public final int getType() {
            return this.type;
        }

        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final Language fromType(int i) {
                Language[] values;
                for (Language language : Language.values()) {
                    if (language.getType() == i) {
                        return language;
                    }
                }
                return null;
            }

            public final Language fromLocalName(String s) {
                Language[] values;
                Intrinsics.checkNotNullParameter(s, "s");
                for (Language language : Language.values()) {
                    if (Intrinsics.areEqual(language.getLocaleName(), s)) {
                        return language;
                    }
                }
                return null;
            }
        }
    }

    public enum FileType {
        TYPE_FIT(Constants.FIT_DIR),
        TYPE_ROUTE("ro"),
        TYPE_MAP("map"),
        TYPE_JSON("json");
        
        public static final Companion Companion = new Companion(null);
        private final String type;

        FileType(String str) {
            this.type = str;
        }

        public final String getType() {
            return this.type;
        }

        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final FileType from(String s) {
                FileType[] values;
                Intrinsics.checkNotNullParameter(s, "s");
                for (FileType fileType : FileType.values()) {
                    if (Intrinsics.areEqual(fileType.getType(), s)) {
                        return fileType;
                    }
                }
                return null;
            }
        }
    }

    public enum GearType {
        Bike("bike"),
        Helmet("helmet"),
        footwar("footwear"),
        light(ToastUtils.MODE.LIGHT);
        
        public static final Companion Companion = new Companion(null);
        private final String type;

        GearType(String str) {
            this.type = str;
        }

        public final String getType() {
            return this.type;
        }

        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final GearType from(String s) {
                GearType[] values;
                Intrinsics.checkNotNullParameter(s, "s");
                for (GearType gearType : GearType.values()) {
                    if (Intrinsics.areEqual(gearType.getType(), s)) {
                        return gearType;
                    }
                }
                return null;
            }
        }
    }

    public enum RouteTypeString {
        Cycling("Cycling"),
        Walking("Walking"),
        Hiking("Hiking");
        
        public static final Companion Companion = new Companion(null);
        private final String type;

        RouteTypeString(String str) {
            this.type = str;
        }

        public final String getType() {
            return this.type;
        }

        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final RouteTypeString from(String s) {
                RouteTypeString[] values;
                Intrinsics.checkNotNullParameter(s, "s");
                for (RouteTypeString routeTypeString : RouteTypeString.values()) {
                    if (Intrinsics.areEqual(routeTypeString.getType(), s)) {
                        return routeTypeString;
                    }
                }
                return null;
            }
        }
    }

    public enum UserPlatformString {
        TYPE_XOSS("XOSS"),
        TYPE_LANXING("LANXING");
        
        public static final Companion Companion = new Companion(null);
        private final String type;

        UserPlatformString(String str) {
            this.type = str;
        }

        public final String getType() {
            return this.type;
        }

        public static final class Companion {
            public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
                this();
            }

            private Companion() {
            }

            public final UserPlatformString from(String s) {
                UserPlatformString[] values;
                Intrinsics.checkNotNullParameter(s, "s");
                for (UserPlatformString userPlatformString : UserPlatformString.values()) {
                    if (Intrinsics.areEqual(userPlatformString.getType(), s)) {
                        return userPlatformString;
                    }
                }
                return null;
            }
        }
    }
}
